package com.bobo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@TableName("tz_prod")
public class Prod {
  /**
   * 主键
   */
  @TableId
  private Integer prodId;
  private String prodName;
  private Integer shopId;
  private Double oriPrice;
  private Double price;
  private String brief;
  private String content;
  private String pic;
  private String imgs;
  private Integer status;
  private Integer categoryId;
  private Integer soldNum;
  private Integer totalStocks;
  private String deliveryMode;
  private Integer deliveryTemplateId;
  private String createTime;
  private String updateTime;
  private String putawayTime;
  private Integer version;
  /**
   * sku列表
   */
  @TableField(exist = false)
  private List<Sku> skuList;

  @Schema(description = "运费信息" , required = true)
  private Transport transport;

  @Data
  public class DeliveryModeVO {
    /**
     * 用户自提
     */
    private Boolean hasUserPickUp;

    /**
     * 店铺配送
     */
    private Boolean hasShopDelivery;

  }

}
